// pages/chuLi/chuLi.js

let app=getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    path:'',
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },
  luyinBtn(){
    wx.chooseImage({
        success:(resp)=>
        {
           
            
           let imgPath=resp.tempFilePaths;
           console.log(imgPath);
           this.setData({path:imgPath});
           console.log(this.data.path[0])
           app.http.shangchuan({"file":this.data.path[0]}).then(res=>{
            console.log("res:",res);
           
          })
        }
      })
  },
  jietuBtn(){
    // console.log(222);
        // console.log(111);
        wx.chooseImage({
            success:(resp)=>
            {
               
                
               let imgPath=resp.tempFilePaths;
               console.log(imgPath);
               this.setData({path:imgPath});
               console.log(this.data.path[0])
               app.http.shangchuan({"file":this.data.path[0]}).then(res=>{
                console.log("res:",res);
               
              })
            }
          })
  },
  qdBtn(){
    //   console.log(3);
    app.http.tschuLI({"handleScheme":'多和孩子沟通，就业帮扶',"images":"https://zy-system.oss-cn-beijing.aliyuncs.com/2022/10b9508640d64d8da953c7f8d516a1d8111.png,","recording":'https://zy-system.oss-cn-beijing.aliyuncs.com/2022/10b9508640d64d8da953c7f8d516a1d8111.MP3','result':true,'notes':'无',
    'handler':'廖勇','complaintId':'1531198652710207500'}).then(res=>{
        console.log("res:",res);
      
      })
  }
})